//存放token
export function setToken(key,token){
    return localStorage.setItem(key,token);
}
//获取token
export function getToken(key){
    return localStorage.getItem(key);
}
//移除token
export function removeToken(key){
    if(getToken(key)){
        return localStorage.removeItem(key)
    }
    return null
}

//清除token和session
export function clearToken(){
    sessionStorage.clear();
    localStorage.clear();
}


